using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN KhoanTienService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: KhoanTienService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class KhoanTienService : IKhoanTienService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: KhoanTien_ID</para>
		/// <para>Output: KhoanTienEntity</para>
		///</summary>
		public KhoanTienEntity SelectOne(int KhoanTien_ID){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.SelectOne(KhoanTien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaKhoanTien</para>
		/// <para>Input: MaKhoanTien</para>
		/// <para>Output: KhoanTienEntity</para>
		///</summary>
		public KhoanTienEntity SelectOneByMaKhoanTien(string MaKhoanTien){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.SelectOneByMaKhoanTien(MaKhoanTien);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoanTienEntity</para>
		///</summary>
		public List<KhoanTienEntity> SelectAll(){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoanTienEntity</para>
		///</summary>
		public List<KhoanTienEntity> SelectAllFilter(string strFilter){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoanTienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(KhoanTienEntity o){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoanTienEntity</para>
		/// <para>Output: KhoanTienEntity</para>
		///</summary>
		public KhoanTienEntity SaveRet(KhoanTienEntity o){
			KhoanTienDAO dao = new KhoanTienDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of KhoanTienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<KhoanTienEntity> list){
			KhoanTienDAO dao = new KhoanTienDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of KhoanTienEntity</para>
		/// <para>Output: List of KhoanTienEntity</para>
		///</summary>
		public List<KhoanTienEntity> SaveListRet(List<KhoanTienEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: KhoanTienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(KhoanTienEntity o){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of KhoanTienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<KhoanTienEntity> list){
			KhoanTienDAO dao = new KhoanTienDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaKhoanTien</para>
		/// <para>Input: NewMaKhoanTien,KhoanTien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaKhoanTien(string NewMaKhoanTien,int KhoanTien_ID){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.UpdateMaKhoanTien(NewMaKhoanTien,KhoanTien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenKhoanTien</para>
		/// <para>Input: NewTenKhoanTien,KhoanTien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenKhoanTien(string NewTenKhoanTien,int KhoanTien_ID){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.UpdateTenKhoanTien(NewTenKhoanTien,KhoanTien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,KhoanTien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int KhoanTien_ID){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.UpdateGhiChu(NewGhiChu,KhoanTien_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: KhoanTienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(KhoanTienEntity o){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: KhoanTien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int KhoanTien_ID){
			KhoanTienDAO dao = new KhoanTienDAO();
			return dao.DeleteByID(KhoanTien_ID);
		}
		#endregion

		#region Select,delete by KhoanTien_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END KhoanTienWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

